package org.bright.mapper;
import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import org.bright.entity.Employees;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bright
 * @since 2024-10-21
 */
@Mapper
public interface EmployeesMapper extends BaseMapper<Employees> {
//    获取员工列表
    List<Employees> selectAllByEmpNameAndPhoneNumber(@Param("empName") String empName, @Param("phoneNumber") String phoneNumber);
//新增
    int insertBatch(@Param("employeesCollection") List<Employees> employeesCollection);
//    修改
    int updateSelective(Employees employees);
//    删除
    int deleteByEmployeeId(@Param("employeeId") Integer employeeId);
//    通过登录名和密码获取用户信息
    Employees selectAllByLoginNameAndPassword(@Param("loginName") String loginName, @Param("password") String password);

    Employees selectByEmployeeId(@Param("employeeId") Integer employeeId);
//通过登录名获取登录用户
    Employees selectAllByLoginName(@Param("loginName") String loginName);
}
